<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta http-equiv="Content-Type" content="text/html;charset=<?php echo $Html_Charset;?>" /> 
	<title><?php echo $Html_Title;?></title>
	<link rel="stylesheet" type="text/css" href="<?php echo $Theme_Root;?>/css/style.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $Theme_Root;?>/css/menu.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $Theme_Root;?>/css/datepicker.css" />
	<?php
	if ($Html_CSS){
		echo $Html_CSS;
	}
	?>
	<script type="text/javascript" src="<?php echo $Theme_Root;?>/javascript/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="<?php echo $Theme_Root;?>/javascript/supersubs_fish.js"></script>
	<script type="text/javascript" src="<?php echo $Theme_Root;?>/javascript/jquery.sparkbox-select.js"></script>
	<script type="text/javascript" src="<?php echo $Theme_Root;?>/javascript/jquery.filestyle.mini.js"></script>
	
	<script type="text/javascript" src="<?php echo $Theme_Root;?>/javascript/date.js"></script>
	<script type="text/javascript" src="<?php echo $Theme_Root;?>/javascript/date_cn.js"></script>
	<script type="text/javascript" src="<?php echo $Theme_Root;?>/javascript/jquery.datepicker.js"></script>

	<script type="text/javascript" src="<?php echo $Theme_Root;?>/javascript/pub.js"></script> 
	<?php
	if($Html_JS){
		echo $Html_JS;
	}
	?>
</head>
	<div class="wrapper">
		
		<div class="container">
			
			<div class="top"> 
				<div class="split"><h1><?php echo $LANG['app_name'];?></h1></div> 
				<div class="split"> 
					<div class="logout">
						<img align="left" alt="<?php echo $LANG['logout'];?>" src="<?php echo $Theme_Root;?>/images/icon-logout.gif" />
						<a href="<?php creat_url('a=loginout',$Site_Url);?>"><?php echo $LANG['logout'];?></a>
					</div> 
					<div>
						<img align="left" alt="<?php echo $LANG['welcome'];?>" src="<?php echo $Theme_Root;?>/images/icon-welcome.gif" />
						<?php echo $LANG['welcome'] . "&nbsp;" .frontcontrol::app()->user->get('user_name');?>
					</div>
				</div>
			</div>
			
			<div class="menu">
				<ul class="sf-js-enabled">
					<li><a href="<?php creat_url('c=index',$Site_Url);?>"><?php echo $LANG['menu_dashboard'];?></a></li>
					<li class="break"></li>
					<li><a href="<?php creat_url('c=category',$Site_Url);?>"><?php echo $LANG['menu_category'];?></a></li>
					<li class="break"></li>
					<li><a href="<?php creat_url('c=author',$Site_Url);?>"><?php echo $LANG['menu_author'];?></a></li>
					<li class="break"></li>
					<li><a href="<?php creat_url('c=book',$Site_Url);?>"><?php echo $LANG['menu_book'];?></a></li>
					<li class="break"></li>
					<li><a href="<?php creat_url('c=special',$Site_Url);?>"><?php echo $LANG['menu_special'];?></a></li>
					<li class="break"></li>
					<li><a href="<?php creat_url('c=region',$Site_Url);?>"><?php echo $LANG['menu_region'];?></a></li>
				</ul>
			</div>
			
			<?php include $_TPL; ?>
			
		</div><!-- container end -->
		
		<div class="footer"></div>
	</div><!-- wrapper end -->
</body>
</html>